<div class="content">
    <div class="layui-card ">
        <div class="search_box">
            <form id="search-form" class="layui-form layui-clear" role="form" data-toggle="validator" method="GET" action="">
                <div class="search_input select_year">
                    <input type="text" id="year" name="year" value="{$year}" class="layui-input">
                    <div class="search_icon layui-icon layui-icon-date"></div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">工资类型</label>
                    <div class="layui-input-inline">
                        <select name="type" lay-filter="type">
                            <option value="">全部类型</option>
                            {if $payslip_type}
                            {foreach $payslip_type as $item}
                            <option value="{$item.id}" {if $item.id==$type}selected{/if}>{$item.name}</option>
                            {/foreach}
                            {/if}
                        </select>
                        <input type="hidden" name="page" value="{$lists.current_page}">
                    </div>
                </div>
            </form>
        </div>
        <div class="layui-card-body">
            <div class="fsjl_list layui-col-space24 layui-row">
                {if $lists.data}
                {foreach $lists.data as $item}
                <div class="item layui-col-sm3">
                    <a class="layui-card" href="{:url($item.status > 0 ? 'manage/payslip_detail':  'manage/payslip_check' , ['id' => $item['id']])}">
                        <h3>{$item.title}</h3>
                        <div class="text"><span>{$item.user_count}</span> 人</div>
                        <div class="time">
                            {if $item.status == 1}
                                <div class="tag1"><i class="iconfont icon-shijian"></i> 队列中，即将发送</div>
                            {elseif ($item.status == 2)}
                                <div class="tag2"><i class="iconfont icon-shijian"></i> 定时发送</div>
                                将于 <span class="color_EF4033">{:datetime($item.estimatetime)}</span> 发送
                            {elseif ($item.status == 3)}
                                <div class="tag"><i class="iconfont icon-gou"></i> 已发送</div>
                                发送时间：{:datetime($item.sendtime)}
                            {else}
                                <div class="tag3"><i class="iconfont icon-wenhaoxiao"></i> 未完成设置，点击继续设置</div>
                            {/if}
                        </div>
                    </a>
                </div>
                {/foreach}
                {/if}
            </div>
            <div id="laypage" data-total="{$lists.total}" data-per_page="{$lists.per_page}" data-current_page="{$lists.current_page}"></div>
        </div>
    </div>
</div>